<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[#include "/admin/include/head.htm"]
    <script charset="utf-8" src="${path}/resources/plug/kindeditor/kindeditor.js"></script>
</head>
    <script type="text/javascript">
		$(function () {
			var mainform = $("#form1");
			//表单底部按钮
			LG.setFormDefaultBtn(function () {
				history.back();
			}, function () {
				LG.submitForm(mainform, function (data) {
					if(data.type = "success"){
						LG.showSuccess(data.content,function () {
							history.go(-1);
						});

					}else{
						LG.showError(data.content);
					}

				});
			})
		});
    </script>


<script>
    KindEditor.ready(function (K) {
        var editor1 = K
                .create(
                        'textarea[name="content"]',
                        {
                            cssPath: '${path}/resources/plug/kindeditor/plugins/code/prettify.css',
                            uploadJson: '${path}/system/upload/submit.aspx',
                            fileManagerJson: '${path}/resources/plug/kindeditor/jsp/file_manager_json.jsp',
                            allowFileManager: true,
                            afterCreate: function () {
                                var self = this;
                                K.ctrl(document, 13, function () {
                                    self.sync();
                                    document.forms['example'].submit();
                                });
                                K.ctrl(self.edit.doc, 13, function () {
                                    self.sync();
                                    document.forms['example'].submit();
                                });
                            },
                            afterBlur: function () {
                                this.sync();
                            }
                        });
        prettyPrint();
    });
</script>
</head>

<body style="overflow:hidden;padding:10px;">
<div class="main_admin_content">
	<form action="${path}/admin/articleCate/edit.aspx" id="form1" method="post">
		<table class="main_edit_table">
			<input type="hidden" type="text" value="${(newsType.id)!''}" name="typeId" />
			<tr>
				<th>标题：</th>
				<td>
					<input type="text" name="name" value="${(newsType.name)!''}" class="formText">

				</td>
			</tr>
			<tr>
				<th>标题：</th>
				<td>
					<input type="text" name="cate_name" value="${(newsType.cate_name)!''}" class="formText">

				</td>
			</tr>

            <tr>
                <td>类型：</td>
                <td>
				[@u.radio  name="type" list={'0': '正文', '1':'列表'}   value=newsType.type /]
                </td>
            </tr>
            <tr>
                <td>内容：</td>
                <td>
					<textarea  name="content">${(newsType.content)!''}</textarea>

                </td>
            </tr>


		</table>
	</form>
</div>
</body>

</html>